package com.wz.device.entity;

import com.wz.framework.aspectj.lang.annotation.Excel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author qiqi
 * @since 2021-10-22
 */
@Entity
@Table(name = "bas_fault_record")
public class BasFaultRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id")
    @Excel(name="序号")
    private String id;

    @Column(name = "device_id")
    @Excel(name="设备编号")
    private String device_id;

    @Column(name = "device_name")
    @Excel(name="设备名称")
    private String device_name;

    @Column(name = "device_type")
    @Excel(name="设备类型")
    private String device_type;

    @Column(name = "task_no")
    @Excel(name="任务号")
    private String task_no;

    @Column(name = "job_id")
    @Excel(name="入库作业号")
    private String job_id;

    @Column(name = "fault")
    @Excel(name="报警代码")
    private String fault;

    @Column(name = "start_time")
    @Excel(name="开始时间")
    private String start_time;

    @Column(name = "finish_time")
    @Excel(name="结束时间")
    private String finish_time;

    @Excel(name="报警信息")
    private String fault_name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public String getDevice_name() {
        return device_name;
    }

    public void setDevice_name(String device_name) {
        this.device_name = device_name;
    }

    public String getDevice_type() {
        return device_type;
    }

    public void setDevice_type(String device_type) {
        this.device_type = device_type;
    }

    public String getTask_no() {
        return task_no;
    }

    public void setTask_no(String task_no) {
        this.task_no = task_no;
    }

    public String getJob_id() {
        return job_id;
    }

    public void setJob_id(String job_id) {
        this.job_id = job_id;
    }

    public String getFault() {
        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getFinish_time() {
        return finish_time;
    }

    public void setFinish_time(String finish_time) {
        this.finish_time = finish_time;
    }

    public String getFault_name() {
        return fault_name;
    }

    public void setFault_name(String fault_name) {
        this.fault_name = fault_name;
    }

    @Override
    public String toString() {
        return "BasFaultRecord{" +
                "id='" + id + '\'' +
                ", device_id='" + device_id + '\'' +
                ", device_name='" + device_name + '\'' +
                ", device_type='" + device_type + '\'' +
                ", task_no='" + task_no + '\'' +
                ", job_id='" + job_id + '\'' +
                ", fault='" + fault + '\'' +
                ", start_time='" + start_time + '\'' +
                ", finish_time='" + finish_time + '\'' +
                ", fault_name='" + fault_name + '\'' +
                '}';
    }
}
